
import java.util.*;
import java.io.*;
/**
 * Write a description of class heaterTest here.
 * 
 * @author (Michael Lavina) 
 * @version (1/30/2012)
 */
public class heaterTest
{
    public static void main(String[] args)
    {
       Scanner sc = new Scanner(System.in); 
       Heater h = new Heater(-27300, 100000);
       h.printCurrentHeaterInterval();
System.out.println("u) Temperature +1\nd) Temperature -1\ni) Set Interval\np) Print Temperature\nt) Swith Unit"); 
       char userInput;
       while(sc.hasNext())
          {
           String s = sc.next();
           System.out.println(s);
           userInput = s.charAt(0);
           switch(userInput)
                        {
                           case 'u':  h.warmer();
                                      break;
                           case 'd':  h.cooler();
                                      break;
                           case 'i':  System.out.println("Please Input a New Increment");
                                      int tmp = sc.nextInt();
                                      h.setIncrement(tmp);
                                      break;
                           case 'p':  h.printTemperature();
                                      break;
                           case 't':  h.switchUnits();
                                      break;
                           case 'q': 
                                      break;
                         }
           h.printCurrentHeaterInterval();
           System.out.println("u) Temperature +1\nd) Temperature -1\ni) Set Interval\np) Print Temperature\nt) Swith Unit");              
                    }
                }
    }

